<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2018/5/3
  Time: 17:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%

int x=0;
pageContext.setAttribute("a",10);
request.setAttribute("b",20);
session.setAttribute("c",30);
application.setAttribute("d",40);

%>

<p>a=${a}</p>

<hr/>

<p>${pageScope.a}</p>
<p>${requestScope.b}</p>
<p>${sessionScope.c}</p>
<p>${applicationScope.d}</p>




</body>
</html>
